<?php
$this->breadcrumbs=array(
	'Teams'=>array('admin'),
	$model->name,
);

$this->menu=array(
	//array('label'=>'List Team', 'url'=>array('index')),
	array('label'=>'Create Team', 'url'=>array('create')),
	array('label'=>'Update Team', 'url'=>array('update', 'id'=>$model->id)),
	//array('label'=>'Delete Team', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Team', 'url'=>array('admin')),
);
?>

<h1>View Team - <?php echo $model->name; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		//'id',
		'name',
	),
)); ?>

<br />
<br />
<h2>Team members:</h2>
<?php 
$this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'part-action-grid',
	'dataProvider'=>new CArrayDataProvider($model->users),
	'columns'=>array(
		//'id',
		'username',
		//'password',
		//'title',
		'firstName',
		'lastName',
		/*
		'contactPhone',
		'email',
		*/
		array(
			'name'=>'teamId',
			'value'=>'$data->team->name',
		),
		array(
			'name'=>'active',
			'type'=>'boolean',
		),
	),
)); 
?>
